<?php if (!defined('THINK_PATH')) exit();?><!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>上海泛软科技有限公司-后台登陆</title>
<meta name="robots" content="nofollow" />
<meta name=”viewport” content=”width=device-width, initial-scale=1, maximum-scale=1″>
<link href="/Public/Css/admin-style.css" rel="stylesheet" type="text/css" />
<link href="/Public/Css/bootstrap.css" rel="stylesheet" type="text/css" />
<link href="/Public/Css/bootstrap.min.css" rel="stylesheet" type="text/css" />


<script language="javascript" type="text/javascript" src="/Public/Js/jquery.js"></script>
<script language="javascript" type="text/javascript" src="/Public/Js/admin-common.js"></script>
<script language="javascript" type="text/javascript" src="/Public/Js/bootstrap.min.js"></script>
<script language="javascript" type="text/javascript" src="/Public/Js/bootstrap.js"></script>
<script language="javascript" type="text/javascript" src="/Public/Js/rock_customer_list.js"></script>
<script language="javascript" type="text/javascript" src="/Public/Js/demo.js"></script>
<script language="javascript" type="text/javascript" src="/Public/Js/blob.js"></script>
<script language="javascript" type="text/javascript" src="/Public/Js/FileSaver.min.js"></script>
<script language="javascript" type="text/javascript" src="/Public/Js/jquery.base64.js"></script>
<script language="javascript" type="text/javascript" src="/Public/Js/jquery-1.10.2.min.js"></script>
<script language="javascript" type="text/javascript" src="/Public/Js/tableExport.js"></script>
<script language="javascript" type="text/javascript" src="/Public/Js/xlsx.core.min.js"></script>
</head>

<body>

<script>
$(function(){
	$("tr:even").css('background','#eee')
})
</script>
<!-- <script>
   $.ajax({
  	        url: 'http://127.0.0.1/index.php/Admin/Netease/news',
  	        type: 'GET',
  	        dataType: 'JSONP',//here
  	        success: callback1=function(data){
		        
			}
  	       });
</script> -->
<div class="title title-article">帖子管理</div>
<style type="text/css">
.sbox{background:#CCC; padding:5px;}
.input{border:#FFF solid 1px;}
option{margin:10px; padding:10px;}
</style>
<!-- <div class="sbox">
  <form name="form1" method="post" action="<?php echo U('search');?>">
    <label>
      <select name="catid" id="catid">
        <option value="0">不限分类</option>
        <?php if(is_array($cat)): $i = 0; $__LIST__ = $cat;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$list): $mod = ($i % 2 );++$i;?><option value="<?php echo ($list['id']); ?>"><?php echo ($list['name']); ?></option><?php endforeach; endif; else: echo "" ;endif; ?>
      </select>
    </label>
    <label>
      <input class="input" type="text" name="k" id="k">
    </label>
    <input type="submit" name="button" id="button" value="搜索">
  </form>
</div>
 -->
<table class="table" width="110%" border="0" cellspacing="0" cellpadding="0">
  <tr class="first">
    <td width="30" align="center" valign="middle">fID</td>
    <td  width="50" align="left" valign="middle">名字</td>
    <td width="50" align="center" valign="middle">头像</td>
    <td width="200" align="center" valign="middle">地址</td>
    <td width="20" align="center" valign="middle">跟帖数</td>
	<td width="50" align="center" valign="middle">帖子内容</td>
	<td width="50" align="center" valign="middle">时间</td>
	<td width="50" align="center" valign="middle">操作</td>
  </tr>
  <?php if(is_array($post)): $i = 0; $__LIST__ = $post;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$list): $mod = ($i % 2 );++$i;?><tr>
   <!--  <td width="50" align="center" valign="middle"><?php echo ($list['id']); ?></td>
    <td align="left" valign="middle"><a href="<?php echo U('Home/Content/index',array('id'=>$list['id']));?>" target="_blank"><?php echo ($list['title']); ?></a></td>
    <td width="100" align="center" valign="middle"><?php echo getCatName($list['catid']);?></td>
    <td width="150" align="center" valign="middle"><?php echo date("Y-m-d H:i:s",$list['time']);?></td>
    <td width="120" align="center" valign="middle"><a class="edit" href="<?php echo U('edit','id='.$list['id']);?>">修改</a> <a class="del" href="<?php echo U('delete','id='.$list['id']);?>" onClick="return confirm('确定要删除吗？')">删除</a></td>
  --> 
    <td width="30" align="center" valign="middle"> <?php echo ($list['fID']); ?></td>
	<td width="50" align="left" valign="middle"><?php echo ($list['fName']); ?></td>
    <td width="50" align="center" valign="middle"><img title="<?php echo ($list['fImg']); ?>" width="100%" src="<?php echo ($list['fImg']); ?>"/></td>
    <td width="200" align="center" valign="middle"><?php echo ($list['fSource']); ?></td>
    <td width="20" align="center" valign="middle"><?php echo ($list['fNumber']); ?></td>
	<td width="20" align="center" valign="middle"><?php echo ($list['fContent']); ?></td>
	<td width="20" align="center" valign="middle"><?php echo ($list['fTime']); ?></td>
	 <td width="120" align="center" valign="middle"><a class="post" href="<?php echo U('postEdit','id='.$list['fID']);?>">修改</a> <a class="del" href="<?php echo U('postdelete','id='.$list['fID']);?>" onClick="return confirm('确定要删除吗？')">删除</a></td>

  </tr><?php endforeach; endif; else: echo "" ;endif; ?>
</table>
  <?php echo ($page); ?>



</body>
</html>